﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PersonSchedule.aspx.cs" Inherits="MyOA.UI.ScheduleManage.PersonSchedule.PersonSchedule" MasterPageFile="~/RightFrame.Master"%>


<asp:Content ID="Content1" ContentPlaceHolderID="cphTitle" runat="server">
    你的位置：个人日程
    <script type="text/javascript">
    var Alert=ymPrompt.alert;
        var Error=ymPrompt.errorInfo;
        function searchClick()
        {
            //alert(document.getElementById("<%=txtYear.ClientID %>").id);
            var year=document.getElementById("<%=txtYear.ClientID %>");
            if(year.value=="")
            {
                Alert("请输入年",null,null,"温馨提示",btnFocus);
                return false;
            }
            var patrn=/^\d*$/;
            if(!patrn.test(year.value)) 
             {
                Alert("请输入整数",null,null,"温馨提示",btnFocus);
                return false;
            }
            if(parseInt(year.value)>2050||parseInt(year.value)<1901)
            {
                 Alert("请输入1901-2050之间的数",null,null,"温馨提示",btnFocus);
                return false;
            }
            return true;
        }
        
        function btnFocus()
        {
             //alert(document.getElementById("<%=txtYear.ClientID %>").id);
            document.getElementById("<%=txtYear.ClientID %>").value="";
  
            var year=document.getElementById("<%=txtYear.ClientID %>").focus();
            
        }
    </script>
       
 </asp:Content>
 
 
 <asp:Content ID="Content2" ContentPlaceHolderID="cphContnent" runat="server">
     <asp:ScriptManager ID="ScriptManager1" runat="server">
     </asp:ScriptManager>
     
     <asp:UpdatePanel ID="UpdatePanel1" runat="server">
     <ContentTemplate>
     <div class="body_title">个&nbsp;&nbsp;人&nbsp;&nbsp;日&nbsp;&nbsp;程</div>
     <div class="body_content">
        <ul class="title_ul">
            <li class="font">日期：年</li>
            <li><asp:TextBox ID="txtYear" runat="server" Text="2009" Width="98" Height="19px"  BackColor="PaleTurquoise" CssClass="lblYear"></asp:TextBox></li>
            <li class="font">月</li>
            <li>
                <asp:DropDownList ID="ddlMonth" runat="server" AutoPostBack="false" Width="100" Height="23px"  BackColor="PaleTurquoise">
                    <asp:ListItem>1</asp:ListItem>
                    <asp:ListItem>2</asp:ListItem>
                    <asp:ListItem>3</asp:ListItem>
                    <asp:ListItem>4</asp:ListItem>
                    <asp:ListItem>5</asp:ListItem>
                    <asp:ListItem>6</asp:ListItem>
                    <asp:ListItem>7</asp:ListItem>
                    <asp:ListItem>8</asp:ListItem>
                    <asp:ListItem>9</asp:ListItem>
                    <asp:ListItem>10</asp:ListItem>
                    <asp:ListItem>11</asp:ListItem>
                    <asp:ListItem>12</asp:ListItem>
                </asp:DropDownList>
            </li>
            
            <li>
                <asp:Button ID="btnSearch" runat="server" Text="查询" CssClass="btnAllandSearch"  
                    onMouseOver="this.className='btnOver'" onMouseOut="this.className='btnOut'" 
                    onclick="btnSearch_Click"  OnClientClick="return searchClick()"/>
            </li>
            <li>
                <asp:Button ID="btnAll" runat="server" Text="全部日程" CssClass="btnAllandSearch" onMouseOver="this.className='btnOver'" onMouseOut="this.className='btnOut'" PostBackUrl="~/ScheduleManage/PersonSchedule/AllSchedule.aspx" />
             </li>
            
        </ul>
        
        <div class="calender">
            <asp:Calendar ID="Calendar1" runat="server"
            Width="100%" Height="300" ShowGridLines="True"
                        PrevMonthText="<img src=../../images/left_arrow.gif />上一月"
                        NextMonthText="下一月<img src=../../images/right_arrow.gif   />"
                        BorderStyle="None" DayNameFormat="Full"  CssClass="calender1"
                ondayrender="Calendar1_DayRender" 
                onselectionchanged="Calendar1_SelectionChanged" 
                onvisiblemonthchanged="Calendar1_VisibleMonthChanged">
                        <TodayDayStyle BorderWidth="2px" BorderStyle="Solid" BorderColor="#0053EC" BackColor="#F0F0E8">
                        </TodayDayStyle>
                        <DayStyle Font-Bold="True" HorizontalAlign="Left" VerticalAlign="Top"></DayStyle>
                        <NextPrevStyle ForeColor="#223399"></NextPrevStyle>
                        <DayHeaderStyle ForeColor="#00637b" Font-Size="13px" Height="5px" BackColor="#BFE6F9">
                        </DayHeaderStyle>
                        <TitleStyle BackColor="#cef3ff" Font-Bold="true" ForeColor="Red" Height="8px"
                            Font-Size="15px"></TitleStyle>
                        <WeekendDayStyle ForeColor="Red"></WeekendDayStyle>
                    </asp:Calendar>
        </div>
     </div>
     </ContentTemplate>
     </asp:UpdatePanel>
</asp:Content>